<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/15
  Time: 15:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>java实现</title>
</head>
<body>
<h1>使用HTML实现</h1>
<p1>1</p1>
<p1>2</p1>
<p1>...</p1>
<p1>100</p1>



<h1>java实现</h1>
<%
    for(int i=0;i<=100;i++){
    out.write("<p>"+i+"<p>");
}

%>

<h1>jstl标签实现</h1>
<c:forEach var="i" begin="1" end="100">
<p>${i}</p>
</c:forEach>
</body>
</html>
